package com.bjfu.dto;

import java.time.LocalDateTime;

public class QuestionDTO {

    private Long question_id;          // 问题 ID
    private String title;              // 标题
    private String content;            // 提问内容
    private Long user_id;              // 用户 ID
    private String username;           // 用户名
    private LocalDateTime question_time; // 提问时间
    private Integer status;            // 状态（0: pending, 1: answered, 2: close）
    private String reply_content;      // 回复内容
    private LocalDateTime reply_time;  // 回复时间

    // Getter and Setter methods

    public Long getQuestion_id() {
        return question_id;
    }

    public void setQuestion_id(Long question_id) {
        this.question_id = question_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public LocalDateTime getQuestion_time() {
        return question_time;
    }

    public void setQuestion_time(LocalDateTime question_time) {
        this.question_time = question_time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReply_content() {
        return reply_content;
    }

    public void setReply_content(String reply_content) {
        this.reply_content = reply_content;
    }

    public LocalDateTime getReply_time() {
        return reply_time;
    }

    public void setReply_time(LocalDateTime reply_time) {
        this.reply_time = reply_time;
    }

    @Override
    public String toString() {
        return "QuestionDTO{" +
                "question_id=" + question_id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", user_id=" + user_id +
                ", username='" + username + '\'' +
                ", question_time=" + question_time +
                ", status=" + status +
                ", reply_content='" + reply_content + '\'' +
                ", reply_time=" + reply_time +
                '}';
    }
}
